<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>B-JUI 客户端框架</title>
<meta name="Keywords" content="B-JUI,Bootstrap,DWZ,jquery,ui,前端,框架,开源,OSC,开源框架,knaan"/>
<meta name="Description" content="B-JUI, Bootstrap for DWZ富客户端框架，基于DWZ富客户端框架修改。主要针对皮肤，编辑器，表单验证等方面进行了大量修改，引入了Bootstrap，Font Awesome，KindEditor，jquery.validationEngine，iCheck等众多开源项目。交流QQ群：232781006。"/> 
<!-- bootstrap - css -->
<link href="../BJUI/themes/css/bootstrap.css" rel="stylesheet">
<!-- core - css -->
<link href="../BJUI/themes/css/style.css" rel="stylesheet">
<link href="../BJUI/themes/blue/core.css" id="bjui-link-theme" rel="stylesheet">
<!-- plug - css -->
<link href="../BJUI/plugins/kindeditor_4.1.10/themes/default/default.css" rel="stylesheet">
<link href="../BJUI/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="../BJUI/plugins/niceValidator/jquery.validator.css" rel="stylesheet">
<link href="../BJUI/plugins/bootstrapSelect/bootstrap-select.css" rel="stylesheet">
<link href="../BJUI/themes/css/FA/css/font-awesome.min.css" rel="stylesheet">

<!-- jquery -->
<script src="../BJUI/js/jquery-1.7.2.min.js"></script>
<script src="../BJUI/js/jquery.cookie.js"></script>

<!-- BJUI.all 分模块压缩版 -->
<script src="../BJUI/js/bjui-all.js"></script>
<!-- 以下是B-JUI的分模块未压缩版，建议开发调试阶段使用下面的版本 -->
<!--
<script src="../BJUI/js/bjui-core.js"></script>
<script src="../BJUI/js/bjui-regional.zh-CN.js"></script>
<script src="../BJUI/js/bjui-frag.js"></script>
<script src="../BJUI/js/bjui-extends.js"></script>
<script src="../BJUI/js/bjui-basedrag.js"></script>
<script src="../BJUI/js/bjui-slidebar.js"></script>
<script src="../BJUI/js/bjui-contextmenu.js"></script>
<script src="../BJUI/js/bjui-navtab.js"></script>
<script src="../BJUI/js/bjui-dialog.js"></script>
<script src="../BJUI/js/bjui-taskbar.js"></script>
<script src="../BJUI/js/bjui-ajax.js"></script>
<script src="../BJUI/js/bjui-alertmsg.js"></script>
<script src="../BJUI/js/bjui-pagination.js"></script>
<script src="../BJUI/js/bjui-util.date.js"></script>
<script src="../BJUI/js/bjui-datepicker.js"></script>
<script src="../BJUI/js/bjui-ajaxtab.js"></script>
<script src="../BJUI/js/bjui-datagrid.js"></script>
<script src="../BJUI/js/bjui-tablefixed.js"></script>
<script src="../BJUI/js/bjui-tabledit.js"></script>
<script src="../BJUI/js/bjui-spinner.js"></script>
<script src="../BJUI/js/bjui-lookup.js"></script>
<script src="../BJUI/js/bjui-tags.js"></script>
<script src="../BJUI/js/bjui-upload.js"></script>
<script src="../BJUI/js/bjui-theme.js"></script>
<script src="../BJUI/js/bjui-initui.js"></script>
<script src="../BJUI/js/bjui-plugins.js"></script>
-->
<!-- plugins -->
<!-- swfupload for uploadify && kindeditor -->
<script src="../BJUI/plugins/swfupload/swfupload.js"></script>
<!-- kindeditor -->
<script src="../BJUI/plugins/kindeditor_4.1.10/kindeditor-all.min.js"></script>
<script src="../BJUI/plugins/kindeditor_4.1.10/lang/zh_CN.js"></script>
<!-- colorpicker -->
<script src="../BJUI/plugins/colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- ztree -->
<script src="../BJUI/plugins/ztree/jquery.ztree.all-3.5.js"></script>
<!-- nice validate -->
<script src="../BJUI/plugins/niceValidator/jquery.validator.js"></script>
<script src="../BJUI/plugins/niceValidator/jquery.validator.themes.js"></script>
<!-- bootstrap plugins -->
<script src="../BJUI/plugins/bootstrap.min.js"></script>
<script src="../BJUI/plugins/bootstrapSelect/bootstrap-select.min.js"></script>
<script src="../BJUI/plugins/bootstrapSelect/defaults-zh_CN.min.js"></script>
<!-- icheck -->
<script src="../BJUI/plugins/icheck/icheck.min.js"></script>
<!-- dragsort -->
<script src="../BJUI/plugins/dragsort/jquery.dragsort-0.5.1.min.js"></script>
<!-- HighCharts -->
<script src="../BJUI/plugins/highcharts/highcharts.js"></script>
<script src="../BJUI/plugins/highcharts/highcharts-3d.js"></script>
<script src="../BJUI/plugins/highcharts/themes/gray.js"></script>
<!-- ECharts -->
<script src="../BJUI/plugins/echarts/echarts.js"></script>
<!-- other plugins -->
<script src="../BJUI/plugins/other/jquery.autosize.js"></script>
<link href="../BJUI/plugins/uploadify/css/uploadify.css" rel="stylesheet">
<script src="../BJUI/plugins/uploadify/scripts/jquery.uploadify.min.js"></script>
<script src="../BJUI/plugins/download/jquery.fileDownload.js"></script>
<!-- Extjs theme classic -->
<link rel="stylesheet" type="text/css" href="../../ext6.2Demo/build/classic/theme-classic/resources/theme-classic-all.css"/>
<!-- Extjs theme triton -->
<!--<link rel="stylesheet" type="text/css" href="../../ext6.2Demo/build/classic/theme-triton/resources/theme-triton-all.css"/>-->
<script type="text/javascript" src="../../ext6.2Demo/build/ext-all.js"></script> <!-- ext-all.js, ext-all-debug.js -->
<script type="text/javascript" src="../../ext6.2Demo/build/classic/theme-classic/theme-classic.js"></script>
<!--<script type="text/javascript" src="../../ext6.2Demo/build/classic/theme-triton/theme-triton.js"></script>-->
<script type="text/javascript" src="../../ext6.2Demo/build/classic/locale/locale-zh_CN.js"></script>
<!-- init -->
<script type="text/javascript">
$(function() {
	/**
	 * 初始化之后,能否再设置`windowWidth`?
	 */
    BJUI.init({
        JSPATH       : '../BJUI/',         //[可选]框架路径
        PLUGINPATH   : '../BJUI/plugins/', //[可选]插件路径
        loginInfo    : {url:'login_timeout.html', title:'登录', width:400, height:200}, // 会话超时后弹出登录对话框
        statusCode   : {ok:200, error:300, timeout:301}, //[可选]
        ajaxTimeout  : 50000, //[可选]全局Ajax请求超时时间(毫秒)
        pageInfo     : {total:'total', pageCurrent:'pageCurrent', pageSize:'pageSize', orderField:'orderField', orderDirection:'orderDirection'}, //[可选]分页参数
        alertMsg     : {displayPosition:'topcenter', displayMode:'slide', alertTimeout:3000}, //[可选]信息提示的显示位置，显隐方式，及[info/correct]方式时自动关闭延时(毫秒)
        keys         : {statusCode:'statusCode', message:'message'}, //[可选]
        ui           : {
                         windowWidth      : 0,    //框架可视宽度，0=100%宽，> 600为则居中显示
                         showSlidebar     : true, //[可选]左侧导航栏锁定/隐藏
                         clientPaging     : true, //[可选]是否在客户端响应分页及排序参数
                         overwriteHomeTab : false //[可选]当打开一个未定义id的navtab时，是否可以覆盖主navtab(我的主页)
                       },
        debug        : true,    // [可选]调试模式 [true|false，默认false]
        theme        : 'sky' // 若有Cookie['bjui_theme'],优先选择Cookie['bjui_theme']。皮肤[五种皮肤:default, orange, purple, blue, red, green]
    })
    
    // main - menu
    $('#bjui-accordionmenu')
        .collapse()
        .on('hidden.bs.collapse', function(e) {
            $(this).find('> .panel > .panel-heading').each(function() {
                var $heading = $(this), $a = $heading.find('> h4 > a')
                
                if ($a.hasClass('collapsed')) $heading.removeClass('active')
            })
        })
        .on('shown.bs.collapse', function (e) {
            $(this).find('> .panel > .panel-heading').each(function() {
                var $heading = $(this), $a = $heading.find('> h4 > a')
                
                if (!$a.hasClass('collapsed')) $heading.addClass('active')
            })
        })
    
    $(document).on('click', 'ul.menu-items > li > a', function(e) {
        var $a = $(this), $li = $a.parent(), options = $a.data('options').toObj()
        var onClose = function() {
            $li.removeClass('active')
        }
        var onSwitch = function() {
            $('#bjui-accordionmenu').find('ul.menu-items > li').removeClass('switch')
            $li.addClass('switch')
        }
        
		/**
		 * 与`home_test_002.html`不同
		 * 此页面采用的是 `li[data-url]`
		 */
        $li.addClass('active')
        if (options) {
            options.url      = $a.attr('href')=='#'?'https://my.oschina.net/juedui0769':$a.attr('href'); //
            options.onClose  = onClose;
            options.onSwitch = onSwitch;
            if (!options.title) options.title = $a.text()
            
            if (!options.target)
                $a.navtab(options)
            else
                $a.dialog(options)
        }
        
        e.preventDefault()
    })
    
    //时钟
    var today = new Date(), time = today.getTime()
    $('#bjui-date').html(today.formatDate('yyyy/MM/dd'))
    setInterval(function() {
        today = new Date(today.setSeconds(today.getSeconds() + 1))
        $('#bjui-clock').html(today.formatDate('HH:mm:ss'))
    }, 1000)
})

/**
 * 与`home_test_002.html`不同
 * `MainMenuClick` 负责将二级菜单"data-url"中的url显示在正文区域。
 */
//菜单-事件
function MainMenuClick(event, treeId, treeNode) {
    event.preventDefault()
    
    if (treeNode.isParent) {
        var zTree = $.fn.zTree.getZTreeObj(treeId)
        
        zTree.expandNode(treeNode, !treeNode.open, false, true, true)
        return
    }
    
    if (treeNode.target && treeNode.target == 'dialog')
        $(event.target).dialog({id:treeNode.tabid, url:treeNode.url, title:treeNode.name})
    else
        $(event.target).navtab({id:treeNode.tabid, url:treeNode.url, title:treeNode.name, fresh:treeNode.fresh, external:treeNode.external})
}

$(function(){
	/**
	 * `<li data-id="10" data-pid="1" data-url="form-button.html" data-tabid="form-button" data-faicon="hand-o-up">按钮</li>`
	 *
	 */
	 $.each($('li[data-url]'), function(i, n){
		var me = this;
		$(me).attr('data-url', 'https://my.oschina.net/juedui0769');
	 });
	 //console.log('BJUI : ', BJUI);
});
</script>

</head>
<body>
    <div id="bjui-window">
    <header id="bjui-header">
        <div class="bjui-navbar-header">
            <button type="button" class="bjui-navbar-toggle btn-default" data-toggle="collapse" data-target="#bjui-navbar-collapse">
                <i class="fa fa-bars"></i>
            </button>
            <a class="bjui-navbar-logo" href="#"><img src="images/logo.png"></a>
        </div>
        <nav id="bjui-navbar-collapse">
            <ul class="bjui-navbar-right">
                <li class="datetime"><div><span id="bjui-date"></span> <span id="bjui-clock"></span></div></li>
                <li><a href="#">消息 <span class="badge">4</span></a></li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">我的账户 <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
						<!-- 
							`data-toggle="dialog"`
							添加上面的属性, 会以对话框的形式展示href
						-->
                        <li><a href="#" data-id="changepwd_page" data-mask="true" data-width="400" data-height="260">&nbsp;<span class="glyphicon glyphicon-lock"></span> 修改密码&nbsp;</a></li>
                        <li><a href="#">&nbsp;<span class="glyphicon glyphicon-user"></span> 我的资料</a></li>
                        <li class="divider"></li>
                        <li><a href="#" class="red">&nbsp;<span class="glyphicon glyphicon-off"></span> 注销登陆</a></li>
                    </ul>
                </li>
                <!--<li><a href="index.html" title="切换为列表导航(窄版)" style="background-color:#ff7b61;">列表导航栏(窄版)</a></li>-->
            </ul>
        </nav>
        <div id="bjui-hnav">
            <button type="button" class="btn-default bjui-hnav-more-left" title="导航菜单左移"><i class="fa fa-angle-double-left"></i></button>
            <div id="bjui-hnav-navbar-box">
                <ul id="bjui-hnav-navbar">
                    
					<li class="active"><a href="javascript:;" data-toggle="slidebar"><i class="fa fa-plane"></i> 理想</a>
                        <div class="items hide" data-noinit="true">
                            <ul class="menu-items" data-faicon="plane">
                                <li><a href="#" data-options="{id:'dream'}">普通表格</a></li>
                            </ul>
                        </div>
                    </li>
                    
					<li><a href="javascript:;" data-toggle="slidebar"><i class="fa fa-bicycle"></i> 现实</a>
                        <div class="items hide" data-noinit="true">
                            <ul class="menu-items" data-faicon="bicycle">
                                <li><a href="#" data-options="{id:'realworld', faicon:'navicon'}">...</a></li>
                            </ul>
                        </div>
                    </li>
                    
					<li><a href="javascript:;" data-toggle="slidebar"><i class="fa fa-navicon"></i> 例子</a>
                        <div class="items hide" data-noinit="true">
                            <ul class="menu-items" data-faicon="navicon">
                                <li><a href="./datagrid/datagrid-demo.html" data-options="{id:'realworld', faicon:'table'}">datagrid例子</a></li>
                            </ul>
                        </div>
                    </li>
					
					<li><a href="javascript:;" data-toggle="slidebar"><i class="fa fa-navicon"></i> Extjs例子</a>
                        <div class="items hide" data-noinit="true">
                            <ul class="menu-items" data-faicon="navicon">
                                <li><a href="./extjs/ExtAccordionLayout.html" data-options="{id:'AccordionLayout', faicon:'navicon'}">AccordionLayout</a></li>
								<li><a href="./extjs/BasicGrid.html" data-options="{id:'BasicGrid', faicon:'navicon'}">BasicGrid</a></li>
                            </ul>
                        </div>
                    </li>

                </ul>
            </div>
            <button type="button" class="btn-default bjui-hnav-more-right" title="导航菜单右移"><i class="fa fa-angle-double-right"></i></button>
        </div>
    </header>
    <div id="bjui-container">
        <div id="bjui-leftside">
            <div id="bjui-sidebar-s">
                <div class="collapse"></div>
            </div>
            <div id="bjui-sidebar">
                <div class="toggleCollapse"><h2><i class="fa fa-bars"></i> 导航栏 <i class="fa fa-bars"></i></h2><a href="javascript:;" class="lock"><i class="fa fa-lock"></i></a></div>
                <div class="panel-group panel-main" data-toggle="accordion" id="bjui-accordionmenu" data-heightbox="#bjui-sidebar" data-offsety="26">
                </div>
            </div>
        </div>
        <div id="bjui-navtab" class="tabsPage">
            <div class="tabsPageHeader">
                <div class="tabsPageHeaderContent">
                    <ul class="navtab-tab nav nav-tabs">
                        <li data-url="index_layout_my_test_001.html"><a href="javascript:;"><span><i class="fa fa-home"></i> #maintab#</span></a></li>
                    </ul>
                </div>
                <div class="tabsLeft"><i class="fa fa-angle-double-left"></i></div>
                <div class="tabsRight"><i class="fa fa-angle-double-right"></i></div>
                <div class="tabsMore"><i class="fa fa-angle-double-down"></i></div>
            </div>
            <ul class="tabsMoreList">
                <li><a href="javascript:;">#maintab#</a></li>
            </ul>
            <div class="navtab-panel tabsPageContent">
                <div class="navtabPage unitBox">
                    <div class="bjui-pageContent" style="background:#FFF;">
                        Loading...
                    </div>
                </div>
            </div>
        </div>
    </div>
    <footer id="bjui-footer">Copyright &copy; 2016 - 2016  <!--<a href="http://www.cdjinyang.com/" target="_blank">成都锦杨科技</a>-->
    </footer>
    </div>
</body>
</html>